using System;
using System.ComponentModel;
using System.Globalization;
using System.ComponentModel.Design.Serialization;



namespace Camalon.Drawing
{
	public class ExpandableInstanceConverter:ExpandableObjectConverter
	{
		public ExpandableInstanceConverter()
		{

		}

		public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
		{
			if (destinationType == typeof(string)) return true;
			if (destinationType == typeof(InstanceDescriptor)) return true;
			return base.CanConvertTo (context, destinationType);
		}

		public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
		{
			if (sourceType == typeof(string)) return true;
			if (sourceType == typeof(InstanceDescriptor)) return true;
			return base.CanConvertFrom (context, sourceType);
		}
	}

}
